<template>
    <div>
        <h4>{{info.cameraid}}号相机-{{info.station}}</h4>
    </div>
</template>

<script>
    import axios from 'axios'
    import API_PRO from "../../api/API_PRO";
    export default {
        name: "cameraTitle",
        data(){
            return{
                info:{
                    angle: "0.0",
                    cameraid: "1",
                    cameraname: "神池南",
                    city: "忻州市神池县",
                    distance: "0.0",
                    height: "2.0",
                    position: "1号",
                    prince: "山西",
                    station: "神池南站",

                }
            }
        },
        methods:{
          setData(data){

          }
        },
        created() {
            this.cameraId = this.$route.params.cameraId;
            var _this = this;
            axios.get(API_PRO.baseURL+'camera/'+this.cameraId)
                .then(function (response) {
                    console.log(response);
                    _this.info = response.data

                })
                .catch(function (error) {
                    console.log(error);
                });

        }
    }
</script>

<style scoped>

</style>
